package org.longteng.dao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
* 用户帐号表
*/
@TableName(value="auth_user")
public class AuthUser implements Serializable {
    /**
    * 用户id
    */
    @TableId(value="user_id",type= IdType.ASSIGN_UUID)
    private String userId;

    /**
    * 客户唯一标识
    */
    private String clientId;

    /**
    * 用户帐号
    */
    private String userAccount;

    /**
    * 用户名
    */
    private String userName;

    /**
    * 用户密码
    */
    private String userPassword;

    /**
    * 申请的权限范围
    */
    private String scope;

    /**
    * 用户性别
    */
    private Integer userSex;

    /**
    * 是否已生效
    */
    private Integer actived;

    /**
    * 生效时间
    */
    private Date activeDate;

    /**
    * 失效时间
    */
    private Date closeDate;

    /**
    * 说明
    */
    private String userRemark;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public Integer getUserSex() {
        return userSex;
    }

    public void setUserSex(Integer userSex) {
        this.userSex = userSex;
    }

    public Integer getActived() {
        return actived;
    }

    public void setActived(Integer actived) {
        this.actived = actived;
    }

    public Date getActiveDate() {
        return activeDate;
    }

    public void setActiveDate(Date activeDate) {
        this.activeDate = activeDate;
    }

    public Date getCloseDate() {
        return closeDate;
    }

    public void setCloseDate(Date closeDate) {
        this.closeDate = closeDate;
    }

    public String getUserRemark() {
        return userRemark;
    }

    public void setUserRemark(String userRemark) {
        this.userRemark = userRemark;
    }

    @Override
    public String toString() {
        return "AuthUser{" +
                "userId='" + userId + '\'' +
                ", clientId='" + clientId + '\'' +
                ", userAccount='" + userAccount + '\'' +
                ", userName='" + userName + '\'' +
                ", scope='" + scope + '\'' +
                ", userSex=" + userSex +
                ", actived=" + actived +
                ", activeDate=" + activeDate +
                ", closeDate=" + closeDate +
                ", userRemark='" + userRemark + '\'' +
                '}';
    }
}